import VuePlugin from 'rollup-plugin-vue'
import postcss from 'rollup-plugin-postcss'
import { getBabelOutputPlugin } from '@rollup/plugin-babel'

export default [{
  input: 'src/widgets/index.js',
  output: {
    file: 'dist/publish/lib/index.esm.js',
    format: 'esm',
    sourcemap: true
  },
  plugins: [
    VuePlugin(),
    postcss({
      extract: true
    }),
    //目前不做babel，先注释这一句
    //getBabelOutputPlugin({presets: ['@babel/preset-env']})
  ],
  external: ['vue'],
}, ]
